<template>
    <div>
        <table border="0">
            <tr>
                <td v-for="(items) in tableData">
                {{items.name}}
                </td>
            </tr>
            <tr>
                <td v-for="items in c">
                <div class="btn-box" :class="{btn_active:items}"></div>
                </td>
            </tr>
            <tr>
                <td v-for="items in tableData1">
                {{items.name}}
                </td>
            </tr>
            <tr>
                <td v-for="items in cc">
                <div class="btn-box" :class="{btn_active:items}"></div>
                </td>
            </tr>
        </table>
    </div>
</template>
<script>
export default {
  props: [
    "c",
    "cc"
  ],
  data () {
    return {
        tableData:[
          {
            name:"风机过载1",
            value:1
          },
          {
            name:"风机运行超时",
            value:0
          },
          {
            name:"电源故障",
            value:1
          },
          {
            name:"加湿器故障",
            value:0
          },
          {
            name:"加热器过热报警",
            value:0
          },
          {
            name:"加湿淤塞报警",
            value:0
          }
        ],
        tableData1:[
          {
            name:"漏水报警",
            value:1
          },
          {
            name:"温度高限报警",
            value:1
          },
          {
            name:"温度低限报警",
            value:0
          },
          {
            name:"湿度高限报警",
            value:0
          },
          {
            name:"湿度低限报警",
            value:1
          }
        ]
    }
  },
  computed: {
  },
  methods: {
    closeMyself () {
      this.$emit('on-close');
    }
  }
}
</script>
<style scoped>
table{
  width: 100%;
  border-collapse:collapse;
  border-top:1px solid #f2f2f2;
}
table td{
  max-width: 180px;
  height: 30px;
  text-align: center;
  border: 0px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  border-right:1px solid #f2f2f2;
}
table tr{
  height: 30px;
  overflow: hidden;
  border-bottom:1px solid #f2f2f2;
  border-left:1px solid #f2f2f2;
}
.btn-box{
  width:13px;
  height:13px;
  border-radius: 50%;
  background: #13ce66;
  box-shadow: 2px 2px 3px #bfbeb8;
  margin: auto;
}
.btn_active{
  background: #ff4949;
}
</style>
